
// <copyright file="PoolAsyncResult.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The pool async result.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Pooling.Internal
{
    using System;

    using SubhadraSolutions.Sharp.Utils.Threading;

    /// <summary>
    /// The pool async result.
    /// </summary>
    internal class PoolAsyncResult : AsyncResult<object>
    {
        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="PoolAsyncResult"/> class.
        /// </summary>
        /// <param name="poolId">
        /// The pool id.
        /// </param>
        /// <param name="poolType">
        /// The pool type.
        /// </param>
        internal PoolAsyncResult(int poolId, Type poolType)
        {
            this.PoolId = poolId;
            this.PoolType = poolType;
        }

        #endregion Constructors and Finalizers

        #region Properties

        /// <summary>
        /// Gets the pool id.
        /// </summary>
        internal int PoolId { get; private set; }

        /// <summary>
        /// Gets the pool type.
        /// </summary>
        internal Type PoolType { get; private set; }

        #endregion Properties
    }
}
